********************************************************************
********************************************************************
Author: Hal Wasserman, Wasserman Enterprises

This contribution will remove oscommerce images from header for
shopping cart/my account and replace them with a nicer shopping cart,
number of items in cart and total amount.
Plus, when the customer's cart is empty, it will show an empty
shopping cart, when the customer adds any item to their cart,
the shopping cart will appear to have items in it. If the customer
removes all items from their cart, the cart image will go back to
appearing empty.

********************************************************************
********************************************************************

To install, simply upload two image files into the catalog/images 
directory and replace header.php in catalog/includes 

or

upload the two images files into the catalog/images directory
and in catalog/includes/header.php find the code at line 58:

    <td align="right" valign="bottom"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_account.gif', HEADER_TITLE_MY_ACCOUNT) . '</a>&nbsp;&nbsp;<a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'header_cart.gif', HEADER_TITLE_CART_CONTENTS) . '</a>&nbsp;&nbsp;<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_CHECKOUT) . '</a>'; ?>&nbsp;&nbsp;</td>
  </tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="1">
  <tr class="headerNavigation">
    <td class="headerNavigation">&nbsp;&nbsp;<?php echo $breadcrumb->trail(' &raquo; '); ?></td>
    <td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a> &nbsp;|&nbsp; <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> &nbsp;|&nbsp; <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a> &nbsp;|&nbsp; <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a> &nbsp;&nbsp;</td>

and replace it with:

    <td align="right" valign="middle"><?php if ($cart->count_contents() > 0) { echo ' <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'cart_full.gif', HEADER_TITLE_CART_CONTENTS) . '</a>' ; }

  else {
    echo '<a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'cart.gif', HEADER_TITLE_CART_CONTENTS) . '</a>';
  }
?>&nbsp;&nbsp;<br>
<font face="Arial" size="2"><?php
  echo ' Item(s):' . $cart->count_contents() ;

  if ($cart->count_contents() > 0) {
    echo '&nbsp;&nbsp;<br>Total: ' . $currencies->format($cart->show_total());
  }
?></font>
&nbsp;&nbsp;</td>


********************************************************************
********************************************************************

The image files included are the shopping cart empty and the shopping
cart full. Modify as you like.

You can see a working sample at http://www.eciggexpress.com